package com.lgqz.himalayafm.bean;


import android.os.Parcel;
import android.os.Parcelable;


/**
 * Description:
 * Copyright(c) 2016,邱国兴
 * This Program is protected by copyright laws
 * Created by Little Monster on 2016/12/2.
 *
 * @author 邱国兴
 */
public class ItemEntity implements Parcelable {
    private String title;
    private String subtitle;
    private String coverPath;
    private String contentType;
    private String url;
    private String sharePic;
    private boolean enableShare;
    private boolean isExternalUrl;
    private long id;
    private long albumId;
    private long uid;
    private String intro;
    private String nickname;
    private String albumCoverUrl29;
    private String coverSmall;
    private String coverMiddle;
    private String coverLarge;
    private String tags;
    private int tracks;
    private long playsCounts;
    private int isFinished;
    private int serialState;
    private long trackId;
    private String trackTitle;
    private String provider;
    private boolean isPaid;
    private int commentsCount;
    private int priceTypeId;
    private String shortTitle;
    private String longTitle;
    private String pic;
    private int type;
    private boolean isShare;
    private boolean is_External_url;
    private int columnType;
    private int specialId;
    private String footnote;



    protected ItemEntity(Parcel in) {
        title = in.readString();
        subtitle = in.readString();
        coverPath = in.readString();
        contentType = in.readString();
        url = in.readString();
        sharePic = in.readString();
        enableShare = in.readByte() != 0;
        isExternalUrl = in.readByte() != 0;
        id = in.readLong();
        albumId = in.readLong();
        uid = in.readLong();
        intro = in.readString();
        nickname = in.readString();
        albumCoverUrl29 = in.readString();
        coverSmall = in.readString();
        coverMiddle = in.readString();
        coverLarge = in.readString();
        tags = in.readString();
        tracks = in.readInt();
        playsCounts = in.readLong();
        isFinished = in.readInt();
        serialState = in.readInt();
        trackId = in.readLong();
        trackTitle = in.readString();
        provider = in.readString();
        isPaid = in.readByte() != 0;
        commentsCount = in.readInt();
        priceTypeId = in.readInt();
        shortTitle = in.readString();
        longTitle = in.readString();
        pic = in.readString();
        type = in.readInt();
        isShare = in.readByte() != 0;
        is_External_url = in.readByte() != 0;
        columnType = in.readInt();
        specialId = in.readInt();
        footnote = in.readString();
    }

    public static final Creator<ItemEntity> CREATOR = new Creator<ItemEntity>() {
        @Override
        public ItemEntity createFromParcel(Parcel in) {
            return new ItemEntity(in);
        }

        @Override
        public ItemEntity[] newArray(int size) {
            return new ItemEntity[size];
        }
    };


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSharePic() {
        return sharePic;
    }

    public void setSharePic(String sharePic) {
        this.sharePic = sharePic;
    }

    public boolean isEnableShare() {
        return enableShare;
    }

    public void setEnableShare(boolean enableShare) {
        this.enableShare = enableShare;
    }

    public boolean isExternalUrl() {
        return isExternalUrl;
    }

    public void setExternalUrl(boolean externalUrl) {
        isExternalUrl = externalUrl;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getAlbumId() {
        return albumId;
    }

    public void setAlbumId(long albumId) {
        this.albumId = albumId;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAlbumCoverUrl29() {
        return albumCoverUrl29;
    }

    public void setAlbumCoverUrl29(String albumCoverUrl29) {
        this.albumCoverUrl29 = albumCoverUrl29;
    }

    public String getCoverSmall() {
        return coverSmall;
    }

    public void setCoverSmall(String coverSmall) {
        this.coverSmall = coverSmall;
    }

    public String getCoverMiddle() {
        return coverMiddle;
    }

    public void setCoverMiddle(String coverMiddle) {
        this.coverMiddle = coverMiddle;
    }

    public String getCoverLarge() {
        return coverLarge;
    }

    public void setCoverLarge(String coverLarge) {
        this.coverLarge = coverLarge;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public int getTracks() {
        return tracks;
    }

    public void setTracks(int tracks) {
        this.tracks = tracks;
    }

    public long getPlaysCounts() {
        return playsCounts;
    }

    public void setPlaysCounts(long playsCounts) {
        this.playsCounts = playsCounts;
    }

    public int getIsFinished() {
        return isFinished;
    }

    public void setIsFinished(int isFinished) {
        this.isFinished = isFinished;
    }

    public int getSerialState() {
        return serialState;
    }

    public void setSerialState(int serialState) {
        this.serialState = serialState;
    }

    public long getTrackId() {
        return trackId;
    }

    public void setTrackId(long trackId) {
        this.trackId = trackId;
    }

    public String getTrackTitle() {
        return trackTitle;
    }

    public void setTrackTitle(String trackTitle) {
        this.trackTitle = trackTitle;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public boolean isPaid() {
        return isPaid;
    }

    public void setPaid(boolean paid) {
        isPaid = paid;
    }

    public int getCommentsCount() {
        return commentsCount;
    }

    public void setCommentsCount(int commentsCount) {
        this.commentsCount = commentsCount;
    }

    public int getPriceTypeId() {
        return priceTypeId;
    }

    public void setPriceTypeId(int priceTypeId) {
        this.priceTypeId = priceTypeId;
    }

    public String getShortTitle() {
        return shortTitle;
    }

    public void setShortTitle(String shortTitle) {
        this.shortTitle = shortTitle;
    }

    public String getLongTitle() {
        return longTitle;
    }

    public void setLongTitle(String longTitle) {
        this.longTitle = longTitle;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isShare() {
        return isShare;
    }

    public void setShare(boolean share) {
        isShare = share;
    }

    public boolean is_External_url() {
        return is_External_url;
    }

    public void setIs_External_url(boolean is_External_url) {
        this.is_External_url = is_External_url;
    }

    public int getColumnType() {
        return columnType;
    }

    public void setColumnType(int columnType) {
        this.columnType = columnType;
    }

    public int getSpecialId() {
        return specialId;
    }

    public void setSpecialId(int specialId) {
        this.specialId = specialId;
    }

    public String getFootnote() {
        return footnote;
    }

    public void setFootnote(String footnote) {
        this.footnote = footnote;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(subtitle);
        dest.writeString(coverPath);
        dest.writeString(contentType);
        dest.writeString(url);
        dest.writeString(sharePic);
        dest.writeByte((byte) (enableShare ? 1 : 0));
        dest.writeByte((byte) (isExternalUrl ? 1 : 0));
        dest.writeLong(id);
        dest.writeLong(albumId);
        dest.writeLong(uid);
        dest.writeString(intro);
        dest.writeString(nickname);
        dest.writeString(albumCoverUrl29);
        dest.writeString(coverSmall);
        dest.writeString(coverMiddle);
        dest.writeString(coverLarge);
        dest.writeString(tags);
        dest.writeInt(tracks);
        dest.writeLong(playsCounts);
        dest.writeInt(isFinished);
        dest.writeInt(serialState);
        dest.writeLong(trackId);
        dest.writeString(trackTitle);
        dest.writeString(provider);
        dest.writeByte((byte) (isPaid ? 1 : 0));
        dest.writeInt(commentsCount);
        dest.writeInt(priceTypeId);
        dest.writeString(shortTitle);
        dest.writeString(longTitle);
        dest.writeString(pic);
        dest.writeInt(type);
        dest.writeByte((byte) (isShare ? 1 : 0));
        dest.writeByte((byte) (is_External_url ? 1 : 0));
        dest.writeInt(columnType);
        dest.writeInt(specialId);
        dest.writeString(footnote);
    }

}
